import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index/index'
import login from '@/components/common/login'
import examRecord from '@/components/exam/examRecord'
import course from '@/components/exam/course'
import emergencyStudent from '@/components/exam/emergencyStudent'
import unitStudent from '@/components/exam/unitStudent'
import chooseUnit from '@/components/exam/chooseUnit'
import anwserRecord from '@/components/exam/anwserRecord'
import exercise from '@/components/exam/exercise'
import anwser from '@/components/exam/anwser'
import enterExam from '@/components/exam/enterExam'
import allTrain from '@/components/index/allTrain'
import trainDetail from '@/components/index/trainDetail'
import accessTrain from '@/components/train/accessTrain'
import training from '@/components/train/training'
import myTrainclass from '@/components/index/myTrainclass'
import info from '@/components/index/info'
import apply from '@/components/index/apply'
import enterpriseApply from '@/components/index/enterpriseApply'
import trainEvaluation from '@/components/index/trainEvaluation'
import trainEvaluation2 from '@/components/index/trainEvaluation2'
import videoPlayer from '@/components/Study/index'
import studentIndex from '@/components/index/studentIndex'
import searchSign from '@/components/index/searchSign'
import completeEnterprise from '@/components/index/completeEnterpriseInfo'
import completeEmergencyInfo from '@/components/index/completeEmergencyInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/studentIndex',
      name: 'studentIndex',
      component: studentIndex
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {

      path: '/examRecord',//考试记录
      name: 'examRecord',
      component: examRecord
    },
    {
      path: '/course',//课件列表
      name: 'course',
      component: course
    },
    {
      path: '/emergencyStudent',//报名-应急学员
      name: 'emergencyStudent',
      component: emergencyStudent
    },
    {
      path: '/unitStudent',//报名-企业学员
      name: 'unitStudent',
      component: unitStudent
    },
    {
      path: '/apply',//报名-应急学员
      name: 'apply',
      component: apply
    },
    {
      path: '/enterpriseApply',
      name: 'enterpriseApply',
      component: enterpriseApply
    },
    {
      path: '/completeEnterpriseInfo',
      name: 'completeEnterpriseInfo',
      component: completeEnterprise
    },
    {
      path: '/completeEmergencyInfo',
      name: 'completeEmergencyInfo',
      component: completeEmergencyInfo
    },
    {
      path: '/chooseUnit',//选择单位
      name: 'chooseUnit',
      component: chooseUnit
    },
    {
      path: '/anwserRecord',//答题记录
      name: 'anwserRecord',
      component: anwserRecord
    },
    {
      path: '/anwser',//考试答题
      name: 'anwser',
      component: anwser
    },
    {
      path: '/exercise',//练习
      name: 'exercise',
      component: exercise
    },
    {
      path: '/enterExam',//进入考试
      name: 'enterExam',
      component: enterExam
    }, {
      path: '/allTrain',//专题培训班
      name: 'allTrain',
      component: allTrain
    },
    {
      path: '/trainDetail',//查看详情
      name: 'trainDetail',
      component: trainDetail
    },
    {
      path: '/accessTrain',//进入培训
      name: 'accessTrain',
      component: accessTrain
    },
    {
      path: '/training',//正在进行中的培训
      name: 'training',
      component: training
    },
    {
      path: '/myTrainclass',//我的培训班
      name: 'myTrainclass',
      component: myTrainclass
    },
    {
      path: '/info',
      name: 'info',
      component: info
    },
    {
      path: '/trainEvaluation', // 培训评估
      name: 'trainEvaluation',
      component: trainEvaluation
    },
    {
      path: '/trainEvaluation2', // 培训评估
      name: 'trainEvaluation2',
      component: trainEvaluation2
    },
    {
      path: '/videoPlayer', // 视频播放
      name: 'videoPlayer',
      component: videoPlayer
    },
    {
      path: '/searchSign', // 报名查询
      name: 'searchSign',
      component: searchSign
    },


  ]
})
